@import '../../global';

.web-editor-fit {
    .page-left {
        align-items: center;
        border-right: 1px solid #e8e8e8;

        .box {
            width: 100%;
            overflow-y: auto;
            padding-right: 8px;

            .item {
                width: 60px;
                text-align: center;
                margin-bottom: 12px;
                user-select: none;
                margin-right: 3px;
                border: solid 1px white;
            }

            .item:hover {
                border: solid 1px lightgrey;
                border-radius: 5px;
                cursor: move;
            }

            .item-2 {
                clear: left;
                float: left;
            }

            .item-3 {
                float: left;
            }

            .gray {
                -webkit-filter: grayscale(100%);
                filter: gray();
            }

            img {
                display: inline-block;
            }

            label {
                display: inline-block;
                max-width: 58px;
                min-width: 58px;
                white-space: nowrap;
                text-overflow: ellipsis;
                overflow: hidden;
                word-break: break-all;
                font-size: 12px;
            }
        }
    }

    .page-right {
        min-height: 560px;
        z-index: 0;

        .toolbar {
            width: 100%;
            display: flex;
            flex-direction: row;
            min-height: 30px;
            border-radius: 3px;
            padding-left: 6px;
            padding-right: 6px;

            .divider {
                line-height: 30px;
                margin-top: 6px;
            }

            .command i {
                display: inline-block;
                width: 30px;
                height: 30px;
                margin: 0;
                padding-top: 3px;
                text-align: center;
                border: 1px solid #fff;
                cursor: pointer;

                &:hover {
                    border: 1px solid #e8e8e8;
                }
            }

            .command-disabled i {
                color: rgba(0, 0, 0, 0.25);
                cursor: auto;

                &:hover {
                    border: 1px solid #fff;
                    cursor: not-allowed;
                }
            }
        }
    }

    .drawer {
        &-background {
            background-color: white;
            width: 100%;
        }

        &-selected {
            line-height: 32px;
            height: 32px;

            label {
                line-height: 32px;
                margin-right: 12px;
                display: inline-block;
                height: 32px;
            }
        }
    }

    .editor-context {
        border-radius: 3px !important;
        border-color: @primary-color !important;

        .ant-menu-item {
            line-height: 32px !important;
            height: 32px !important;
            padding-left: 8px !important;
            padding-right: 8px !important;
        }
    }
}